package com.github.wj.web.service.impl;

import com.github.wj.orm.security.datasource.DBUtil;
import com.github.wj.web.entity.Lborganization;
import com.github.wj.web.service.CustomLborganizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018/3/18
 */
@Service
public class CustomLborganization implements CustomLborganizationService {

    @Autowired
    private DBUtil dbUtil;

    @Override
    public List<Lborganization> getAllList() {
        return dbUtil.getAllBeanList("select id,name from lbOrganization where bmsx=3",Lborganization.class);
    }
}
